package com.hundsun.documentripper.mapper;

import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hundsun.documentripper.domain.pojo.File;

/**
 * Note：
 *
 * @author ：mengjw
 * @description：文件Mapper
 * @date ：Created in 2021/1/26
 */
public interface FileMapper extends BaseMapper<File> {

    /**
     * 从文件历史表回复到历史表
     *
     * @param productVersionUuid
     */
    @Select("insert into file " +
            "select * from file_history where product_version_uuid = #{productVersionUuid} ")
    void insertFromFileHistory(String productVersionUuid);

}